package appapi.entity.record;

import appapi.common.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * 请求对象
 *
 * @author luocheng
 * @version 1.0
 * @date 2023/06/01 17:26
 */
@Data
@NoArgsConstructor
public class MonthInspectionModel extends BaseEntity implements Serializable {

    @ApiModelProperty(value = "记录ID")
    private Long monthId;

    @ApiModelProperty(value = "设备id")
    private Long equipId;

    @ApiModelProperty(value = "设备名称")
    private String equipName;

    @ApiModelProperty(value = "月检时间")
    private Date monthDate;

    @ApiModelProperty(value = "月检公司")
    private String monthCompany;

    @ApiModelProperty(value = "月检人员")
    private String operator;
    @ApiModelProperty(value = "编辑人员")
    private String editOperator;

    @ApiModelProperty(value = "检测结果 0-正常;1-异常")
    private Integer monthResult;

    @ApiModelProperty(value = "处理状态 0-已处理;1-未处理")
    private Integer auditState;
    @ApiModelProperty(value = "附件地址url")
    private List<String> annexUrl;
    @ApiModelProperty(value = "处理时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auditDate;

    @ApiModelProperty(value = "整改要求")
    private String expRequire;

    @ApiModelProperty(value = "监检证书号")
    private String certNumber;

    @ApiModelProperty(value = "发证日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date issuDate;

    @ApiModelProperty(value = "复审日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date reviewDate;

    @ApiModelProperty(value = "操作人员")
    private Long staffId;

    @ApiModelProperty(value = "月检明细")
    List<MonthdetailEntity> detail;
}
